#include <stdio.h>
#include <ctype.h>

void get_value(char * _buffer , char * _value) 
{
   int i=0;
   _buffer = strchr(_buffer,'=') + 1 ;

   //从'='开始向后读取
   while( isspace(*(_buffer+i))  )
     i++;
   _buffer+=i;

   i = 0;
   while(!isspace(*(_buffer+i)))
     i++;
    * (_buffer+i)='\0';
   strcpy (_value,_buffer);
}

int main()
{
	char buffer[100],value[100];
	memset(buffer , 0x00 , sizeof(buffer));
	memset(value , 0x00 , sizeof(value));
	strcpy(buffer , "CommLog		=	/log/hczls_comm.log 	;通讯报文日志文件名");
	get_value(buffer , value);
	printf("value = %s\n" , value) ;
	return 0;
}
